package com.nf.entity;

public class Car1 {
    public Car1(String name, int sum, float privce) {
        System.out.println("ioc容器通过构造器注入："+name+","+sum+","+privce);
        this.name = name;
        this.sum = sum;
        this.privce = privce;
    }

    private String name;
    private int sum;
    private float privce;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    public float getPrivce() {
        return privce;
    }

    public void setPrivce(float privce) {
        this.privce = privce;
    }


}
